FREE SSL CERTIFICATES: Secure your Web server with free Let's Encrypt Certificates Guide to fully automate the process of creating and renewing certificates. (CTS SOLUTIONS IT-PRO E-Books Book 4) by Karl Joch

FREE SSL CERTIFICATES: Secure your Web server with free Let's Encrypt Certificates Guide to fully automate the process of creating and renewing certificates. (CTS SOLUTIONS IT-PRO E-Books Book 4) by Karl Joch

Author:Karl Joch [Joch, Karl]
Language: eng
Format: azw3
Tags: Let's Encrypt, freebsd, letsencrypt, plesk, no extra software, renew, cron job, automate, linux, lets encrypt, script based, free ssl certificates
Publisher: CTS GMBH
Published: 2017-01-12T05:00:00+00:00


#!/bin/sh

#

cd /home/letsencrypt/cts || exit 1;

#

############################################################

# CTS-Solutions.AT script to create/renew certs v1.0

# Professional-Help: http://cts-solutions.at

############################################################

# on FreeBSD add /usr/local/bin to root's path for curl

#

# In general you want to setup your .well-known path first,

# fill in domains.txt later.

#

# **Please note that you should use the staging URL while

# experimenting with this script to not hit Let's Encrypt

# rate limits. **

#

# Required: per IP conf needed for Plesk Servers!

#

# Plesk cmd cert assignment works only in combination

# with IP Address

############################################################

# If you are running an ipfw firewall and port 80 is not open

# by default we open the firewall for the renew process only.

#

# Adopt rule number, interface and path to ipfw as needed

# for your setup before uncommenting it

#

# /sbin/ipfw <RULENUMBER> add allow tcp from any to me dst-port 80 in via <Your WAN Interfacename> setup

#

############################################################

# Uncomment if you are using fetch instead of wget:

#

#/usr/bin/fetch "https://github.com/lukas2511/dehydrated/raw/master/dehydrated"

#chmod 750 dehydrated

#

# get the latest dehydrated version. Comment this out if you

# want manual updates.

#

/usr/bin/wget "https://github.com/lukas2511/dehydrated/raw/master/dehydrated"

chmod 750 dehydrated

#

# Receive or renew or certificates. Execute hook.sh if done.

#

/home/letsencrypt/cts/dehydrated -c \

--config /home/letsencrypt/cts/conf-ip1/config.sh \

--hook /home/letsencrypt/cts/conf-ip1/hook.sh

#

# Depending on your system Apache needs to be reloaded

# restart graceful to not harm users.

#

# FreeBSD sample (change as needed for your server):

#/usr/sbin/service apache24 graceful

#

# If you opened the firewall, close the port again

#

# /sbin/ipfw <RULENUMBER> delete

#

############################################################



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.